<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

		<div id="panel-oa-incomingdispatches" data-options="border:false;width:100%">
			<div class="well well-small" style="margin-left: 5px;margin-top: 5px">

				<p>
					<span class="badge">提示</span>
					点击工具栏
					<strong>
						<font color="red">查询条件</font>
					</strong>
					可根据需要设置数据查询及过滤条件,条件设置完成后点击工具栏
					<Strong>
						<font color="red">执行查询</font>
					</strong>
						按钮，可查看查询结果
				</p>
			</div>
			<div class="condition easyui-panel" data-options="openAnimation:'slide',closeAnimation:'slide'">
				<form class="condition-form">
					<fieldset>
						<table>
							<tr>
								<th>事项状态</th>
								<td>
									<input name="flow_state" id="flow_state" type="text"
										class="easyui-textbox easyui-validatebox" style="width:200px" />
								</td>
								<th>填表时间</th>
								<td>
									<input name="apply_date" id="apply_date"
										class="easyui-datebox easyui-validatebox" style="width:200px" />
								</td>
								<th>发文人</th>
								<td>
									<input name="apply_name" id="apply_name"
										class="easyui-textbox easyui-validatebox" style="width:200px" />
								</td>
								<th>所在科室</th>
								<td>
									<input name="apply_deptname" id="apply_deptname" type="text"
										class="easyui-textbox easyui-validatebox" style="width:200px" />
								</td>
							</tr>
						</table>
					</fieldset>
				</form>
			</div>
			<div class="search-mm">

				<div name="apply_name">发文人</div>
				<div name="apply_deptname">所在科室</div>
			</div>
			<div class="tb-list" style="padding:2px 0">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td style="padding-left:2px" class="list-btn">

						</td>
						<td style="padding-left:2px">
							<input class="searchbox" type="text" />
							<a href="javascript:void(0);" class="easyui-linkbutton conditon-search function-btn"
								plain="true">查询条件</a>
							<a href="javascript:void(0);" class="easyui-linkbutton conditon-search function-btn"
								iconCls="icon-search" plain="true">执行查询</a>
						</td>
					</tr>
				</table>
			</div>
			<table class="easyui-datagrid dg-list"
				data-options="rownumbers:true,
		animate: true,						
		striped:true,
		border:true,
		//singleSelect:false,
		idField: 'id',						
		fitColumns: true,
		checkOnSelect:true,
		selectOnCheck:true" ,
				rowStyler: function ( index , row ) if ( row.flowStatus &
				row.flowStatus==2){ return ' background-color:red ;>

				<thead>
					<tr>
						<th field="ck" checkbox="true"></th>
						<th field="apply_name" width="60" align="center">发文人</th>
						<th field="apply_deptname" width="60" align="center">所在科室</th>
						<th field="sign_received" width="60" align="center">签收登记</th>
						<th field="protocol_view" width="60" align="center">拟办意见</th>
						<th field="document_pass" width="60" align="center">公文传阅</th>
						<th field="place_file" width="60" align="center">归档</th>
						<th field="flowState" width="60" align="center">当前环节</th>	
					</tr>
				</thead>

			</table>
			
		</div>


		<script>
			requirejs(['listPageModule','oaIncomingDispatches','domReady!'],function(flowedit,oaIncomingDispatches,doc){
			flowedit.init({doc:doc,
			rootId:'panel-oa-incomingdispatches',
			subSystemCode:'sysman',
			moduleCode:'oaIncomingDispatches',
			editWindow:'oa-incomingdispatches-win',
			initQueryParams:{flowtype:'0'},
			querylistUrl:'getTaskListDomain',
			onWindowClose:oaIncomingDispatches.closeWindow,
			initElement:oaIncomingDispatches.initList,
			rowDblClick:oaIncomingDispatches.rowDblClick});
			});
		</script>

